<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .wrap{
            width: 300px;
            height: 300px;
            background: gray;
        }
        .inner{
            width: 200px;
            height: 200px;
            background: pink;
        }
        .test{
            width: 100px;
            height: 100px;
            background: black;
        }
    </style>
</head>
<body>
    <div id="app">
        <button @click="fn(1,$event)">click me</button>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.config.productionTip = false

    new Vue({
        el:"#app",
        methods:{
            fn(num,ev){
                console.log("fn",num,ev)
            }
        }
    })
</script>
</html>